import type { NuxtAxiosInstance } from "@nuxtjs/axios"



export default ($axios: NuxtAxiosInstance) => {
    return {
        /**
         * 通过token获取用户信息
         * @returns 
         */
        getUserInfo: (params: { [key: string]: any }) => {
            return $axios({
                url: '/auth/getUserInfo',
                method: 'get',
                params,
            })
        },
    }
}